package cn.bulibuqi.boot05web01.controller;

import cn.bulibuqi.boot05web01.bean.Person;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author bulibuqi
 * @create 2021-12-16:50
 */
@Controller
public class ResponseTestController {

    @GetMapping("/test/person")
    @ResponseBody
    public Person getPerson(){
        Person person = new Person();
        person.setAge(23);
        person.setName("张三");
        return person;
    }
}
